package algorithms.utis;

import com.google.common.base.Preconditions;
import org.apache.commons.lang3.RandomUtils;

public class AlgorithmsUtis {

    public static void swap(int[] arr, int i, int j) {
        int t = arr[i];
        arr[i] = arr[j];
        arr[j] = t;
    }
    public static void swap(Comparable[] arr, int i, int j) {
        Comparable t = arr[i];
        arr[i] = arr[j];
        arr[j] = t;
    }


}
